$(function(){
    var userId =  '${sessionScope.SysUserId}';
    if(userId == null || userId == ""){
        window.location.href='/mup-login.jsp';
    }
});
$(function() {
    $(".treeview-menu a").on("click", function () {
        admin_tab(this);
    });
    function admin_tab(obj) {
        var _href = $(obj).attr('_href');

        var topWindow = $(window.parent.document);
        var iframe_box = topWindow.find('#iframe_box');

        var iframeBox = iframe_box.find('.show_iframe');
        iframeBox.hide();
        iframe_box.append('<div class="show_iframe"><div class="loading"></div><iframe frameborder="0" src=' + _href + '></iframe></div>');

    }

    $(".sidebar-menu .treeview").on("click",function () {

    });



});